package com.yn.courseselectionsystem.pojo;

import javax.persistence.*;

/**
 * @description: TODO
 * @author: Tokyo_God
 * @date: 2020/12/25 20:55
 * Role of:
 * @version: v1.0
 */
@Entity
@Table(name = "user")
public class User {
    public User(){}

    public User(Integer id, String name, String pwd, String email,
                String clbum, String idCard, Integer sex, Integer age,
                String photo, Integer activate, Integer mark, Integer semesterId) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
        this.email = email;
        this.clbum = clbum;
        this.idCard = idCard;
        this.sex = sex;
        this.age = age;
        this.photo = photo;
        this.activate = activate;
        this.mark = mark;
        this.semesterId = semesterId;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY )
    private Integer id;
    private String name;
    private String pwd;
    private String email;//邮箱地址
    private String clbum;
    private String idCard;
    private Integer sex;
    private Integer age;
    private String photo;//照片
    private Integer activate;//是否激活
    private Integer mark;//分数
    private Integer semesterId;

    public Integer getSemesterId() {
        return semesterId;
    }

    public void setSemesterId(Integer semesterId) {
        this.semesterId = semesterId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getClbum() {
        return clbum;
    }

    public void setClbum(String clbum) {
        this.clbum = clbum;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Integer getActivate() {
        return activate;
    }

    public void setActivate(Integer activate) {
        this.activate = activate;
    }

    public Integer getMark() {
        return mark;
    }

    public void setMark(Integer mark) {
        this.mark = mark;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", email='" + email + '\'' +
                ", clbum='" + clbum + '\'' +
                ", idCard='" + idCard + '\'' +
                ", sex=" + sex +
                ", age=" + age +
                ", photo='" + photo + '\'' +
                ", activate=" + activate +
                ", mark=" + mark +
                '}';
    }
}
